package core

import (
	"github.com/bwmarrin/snowflake"
	"github.com/sirupsen/logrus"
)

func InitSnowflake() *snowflake.Node {
	node, err := snowflake.NewNode(1)
	if err != nil {
		logrus.Fatalf("初始化snowflake失败, err: %v", err)
	}
	return node
}
